package com.xinqi.modules.exam.common.delayed.dto;

import com.xinqi.common.base.utils.json.JSON;
import lombok.Data;

import java.io.Serializable;

/**
 * @author linkai
 * @date 2023/11/23
 */
@Data
public class ExamMqMessage implements Serializable {
    private String examQueue;
    private String examId;

    public static ExamMqMessage of(String examQueue, String examId) {
        ExamMqMessage message = new ExamMqMessage();
        message.setExamQueue(examQueue);
        message.setExamId(examId);
        return message;
    }

    public static String as(String examQueue, String examId) {
        return JSON.stringify(of(examQueue, examId));
    }
}
